{{each data menu }}
    {{ if menu.children == null || menu.children == undefined }}
        <li>
            <a href="#{{ menu.url }}">
                <i class="{{ menu.image }}"></i>
                <span>{{ menu.name }}</span>
            </a>
        </li>
    {{ else }}
        <li class="treeview">
            <a>
                <i class="{{ menu.image }}"></i>
                <span>{{ menu.name }}</span>
                <span class="pull-right-container">
                    <i class="fa fa-angle-left pull-right"></i>
                </span>
            </a>
            <ul class="treeview-menu">
                {{each menu.children item }}
                    <li>
                        <a href="#{{ item.url }}">
                            <i class="fa fa-angle-right"></i>
                            <span>{{ item.name }}</span>
                        </a>
                    </li>
                {{/each}}
            </ul>
        </li>
    {{/if}}
{{/each}}